From: Geert Uytterhoeven Date: Mon, 21 Nov 2011 20:53:53 +0000 (+0100) Subject: fbdev/amifb: Fix double free X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~11603^2~91 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=769ea33145b5f4c1f0d07e1d4db0121c4b98f81f;p=linux-4.9.git fbdev/amifb: Fix double free Signed-off-by: Geert Uytterhoeven Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index 72454c738144..39d211ad164d 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c @@ -2464,7 +2464,6 @@ static void amifb_deinit(struct platform_device *pdev) { if (fb_info.cmap.len) fb_dealloc_cmap(&fb_info.cmap); - fb_dealloc_cmap(&fb_info.cmap); chipfree(); if (videomemory) iounmap((void *)videomemory);